<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2018-08-10
  Time: 8:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.css"/>

<link rel="stylesheet" href="${pageContext.request.contextPath}/static/table/bootstrap-table.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/table/bootstrap-table.min.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/table/locale/bootstrap-table-zh-CN.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/date/Moment.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/layui.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/tongyong.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/easyui/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/demo.css">

<script type="text/javascript" src="${pageContext.request.contextPath}/static/easyui/jquery.easyui.min.js"></script>

<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/shequfuwu/baojielvhua.js"></script>


<html>
<head>
    <title>保洁绿化</title>
</head>
<body>

<div class="panel panel-default">
    <div class="panel-body">
        <%--查询--%>
        <form class="form-inline">
            <%--添加按钮--%>
            <button type="button" style="margin-left: 15px;margin-right: 15px;" class="btn btn-default navbar-btn"  data-target="#myModal" data-toggle="modal">增加</button>&nbsp;
            <%--按时间查询--%>
            <div  class="input-group input-daterange">
                <input id="shijianyi" type="text" class="form-control">
                <div class="input-group-addon">到：</div>
                <input id="shijianer" type="text" class="form-control">
            </div>
                <div class="form-group">
                    <label>类型:</label> <input id="Ssjtype" class="easyui-combogrid" style="width:200px;" data-options="
			                    panelWidth: 500,
			                    idField: 'id',
			                    textField: 'name',

			                    url: '${pageContext.request.contextPath}/../../lvhuatype/baojietype',
			                    method: 'get',
			                    columns: [[
				                        {field:'id',title:'id',width:100},
				                        {field:'name',title:'事件类型',width:150},
			                    ]],
			                    fitColumns: true
		                    ">
                </div>
            <button onclick="ban()" type="button" class="btn btn-default">查询</button>
        </form>

        <table id="table"></table>
    </div>
</div>


<!-- 模态框 -->
<!-- Modal -->
<div class="modal fade" id="myModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">保洁绿化</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div class="layui-card-header">基本信息</div>
                    <div class="layui-card-body">
                        <div class="form-group">

                            <label for="order">编号:</label>
                            <input type="text" class="form-control" id="order" placeholder="请输入编号">

                            <label for="sjtype">类型:</label><br>
                            <input id="sjtype" class="easyui-combogrid" style="width:200px;" data-options="
			                    panelWidth: 500,
			                    idField: 'id',
			                    textField: 'name',

			                    url: '${pageContext.request.contextPath}/../../lvhuatype/baojietype',
			                    method: 'get',
			                    columns: [[
				                        {field:'id',title:'id',width:100},
				                        {field:'name',title:'事件类型',width:150},
			                    ]],
			                    fitColumns: true
		                    "><br>

                            <label for="quyu">区域:</label>
                            <input type="text" class="form-control" id="quyu" placeholder="请输入区域">
                            <label for="fuzheren">负责人:</label>
                            <input type="text" class="form-control" id="fuzheren" placeholder="请输入负责人">
                            <label for="riqi">日期:</label>
                            <input id="riqi" type="text" class="form-control" placeholder="请输入日期">
                            <label for="yanshou">验收:</label>
                            <input type="text" class="form-control" id="yanshou" placeholder="请输入检查结果">
                            <label for="miaoshu">描述:</label>
                            <textarea class="form-control" rows="3" id="miaoshu" placeholder="请输入事件简要"></textarea>


                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button onclick="add2()" type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>


<%--双击打开--%>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div style="width: 500px;" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel2">修改建议意见</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>

                    <input type="hidden" id="yin1">
                    <div class="form-group">
                        <label>编号:</label> <input type="text" class="form-control" id="Sorder" readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label>类型:</label>
                        <input id="SSsjtype" class="easyui-combogrid" style="width:200px;" data-options="
			                    panelWidth: 500,
			                    idField: 'id',
			                    textField: 'name',

			                    url: '${pageContext.request.contextPath}/../../lvhuatype/baojietype',
			                    method: 'get',
			                    columns: [[
				                        {field:'id',title:'id',width:100},
				                        {field:'name',title:'事件类型',width:150},
			                    ]],
			                    fitColumns: true
		                    "><br>
                    </div>
                    <div class="form-group">
                        <label>区域:</label> <input type="text" class="form-control" id="Squyu">
                    </div>

                    <div class="form-group">
                        <label>负责人:</label> <input id="Sfuzhuren" type="text" class="form-control">
                    </div>


                    <div class="form-group">
                        <label>日期:</label> <input id="Sriqi" type="text" class="form-control" placeholder="请输入日期">
                    </div>

                    <div class="form-group">
                        <label>验收:</label> <input type="text" class="form-control" id="Syanshou" placeholder="请输入检查结果">
                    </div>
                    <div class="form-group">
                        <label>描述:</label> <textarea class="form-control" rows="3" id="Smiaoshu" placeholder="请输入事件简要"></textarea>
                    </div>


                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="ddd" onclick="upd()" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>



















</body>
</html>
